Add bundle_root_path to deployment metadata workspace info#5665
Conversation
Approval status: pending
|
Integration test reportCommit: 82714a7
22 interesting tests: 13 SKIP, 7 RECOVERED, 2 flaky
Top 30 slowest tests (at least 2 minutes):
|
| FilePath string `json:"file_path,omitempty"` | ||
| SourceLinked bool `json:"source_linked,omitempty"` | ||
| GitFolderPath string `json:"git_folder_path,omitempty"` | ||
| BundleRootPath string `json:"bundle_root_path,omitempty"` |
There was a problem hiding this comment.
@shreyas-goenka could you please port this field to the production CLI?
Support in DMS is work in progress, do you need to also have this field in SDK?
There was a problem hiding this comment.
For the master CLI we'll need in the SDK but not for the temp image we are working against right now.
e468bfb
into
shreyas-goenka/deployment-metadata-service
Changes
Add
bundle_root_pathto the deployment metadataWorkspaceInfo— both thetmpdmstype sent onCreateVersionand the populating logic inworkspaceInfo(). It records the bundle root path relative to the git folder, sourced fromb.Config.Bundle.Git.BundleRootPath.Why
The deployment-details UI links a deployment's "Source" to the bundle folder (the folder containing
databricks.yml). Today onlygit_folder_path(the git repo root) is recorded, so the link resolves the repo root instead of the bundle root when the bundle lives in a subfolder. Recordingbundle_root_pathlets the UI resolve the actual bundle folder viajoin(git_folder_path, bundle_root_path). Mirrors the value already written tometadata.json.Gated on the same workspace Git-folder condition as
git_folder_path:BundleRootPathdefaults to"."(filepath.Relreturns"."when bundle root == worktree root), so it is only meaningful for workspace Git-folder deploys. This intentionally diverges frommetadata.json(which writes it unconditionally undergit).Needs the matching
bundle_root_pathfield on the DMS proto (separate universe PR).Tests
Extended the existing
workspaceInfounit tests: local deploy assertsbundle_root_pathstays empty; git-folder deploy asserts it round-trips.